package com.guodefu.demo.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guodefu.demo.domain.Payment;
import com.guodefu.demo.mapper.PaymentMapper;
import com.guodefu.demo.service.PaymentService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;


@Slf4j
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {//

    @Resource
    PaymentMapper paymentMapper;

    @Override
    public Payment selectByAmount(BigDecimal amount) {
        return paymentMapper.selectByAmount(amount);
    }
}
